var kindId;
function init(result){
	if(result == 2){
		$( "#deletedialog" ).dialog( "open" );
	}
}
function deleteKind(id){
	kindId = id;
	$( "#dialog-confirm" ).dialog( "open" );
}

function sure(){
	var current = document.getElementById("currentPage").value;
	var ke = document.getElementById("kindKeId").value;
	location.href="plant-deleteKindShu.html?idKindShu="+kindId + "&page.currentPage="+current+ "&move=0&idKindKe="+ke;
}

/**
* 页面跳转
* @param current 当前页
* @param move 翻页码的动作
* @return
*/
function pageJump(current, move){

	var count = document.getElementById("countPage").value;
	var endPage = document.getElementById("lastpage").value;
	var ke = document.getElementById("kindKeId").value;

	if(move != 0){
		current = document.getElementById("currentPage").value;
	}

	var html = "plant-listKindKe.html?move="+move+"&page.currentPage="+current+"&page.countPage="
			+count+"&endPage="+endPage+"&idKindKe=" + ke;
	location.href=html;
}